# coding=utf-8
class A:
    def __init__(self):
        print 'run A.__init__';
        self.a(); self._b(); self.__c(); self.____d()
    def a(self): print 'run A.a'
    def _b(self): print 'run A._b'
    def __c(self): print 'run A.__c'
    def ____d(self): print 'run A.____d'

class B(A):
    def __init__(self):
        A.__init__(self)
        print '----------------------------------------------------------'
        print 'run B.__init__';
        self.a(); self._b(); self.__c(); self.____d()
    def a(self): print 'run B.a'
    def _b(self): print 'run B._b'
    def __c(self): print 'run B.__c'
    def ____d(self): print 'run B.____d'

a = A()
print dir(a)
print '========================================================================'
b = B()
print dir(b)